﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Drawing;
using System.Data;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace MulagoDb
{
    public partial class FamilyStudyControl : UserControl
    {
        public FamilyStudyControl()
        {
            InitializeComponent();
        }

        private void FamilyStudyControl_Load(object sender, EventArgs e)
        {
            grid1.BorderStyle = BorderStyle.Fixed3D;
            grid1.ColumnsCount = 15;
            grid1.FixedRows = 2;
            grid1.Rows.Insert(0);
            grid1[0, 0] = new SourceGrid.Cells.ColumnHeader("Name");
            grid1[0, 0].Column.Width = 100;
            grid1[0, 0].RowSpan = 1;
            grid1[0, 1] = new SourceGrid.Cells.ColumnHeader("Birth date");
            grid1[0, 1].Column.Width = 100;
            grid1[0, 1].RowSpan = 1;
            grid1[0, 2] = new SourceGrid.Cells.ColumnHeader("CBC");
            grid1[0, 2].Column.Width = 200;
            grid1[0, 2].ColumnSpan = 3;
            grid1[0, 5] = new SourceGrid.Cells.ColumnHeader("Sickling Test");
            grid1[0, 5].Column.Width = 100;
            grid1[0, 5].ColumnSpan = 2;
            grid1[0, 7] = new SourceGrid.Cells.ColumnHeader("Hemoglobin identification");
            grid1[0, 7].Column.Width = 300;
            grid1[0, 7].ColumnSpan = 6;
            grid1[0,13] = new SourceGrid.Cells.ColumnHeader("Diagnosis");
            grid1[0, 13].Column.Width = 100;
            grid1[0, 14] = new SourceGrid.Cells.ColumnHeader("Comments");
            grid1[0, 14].Column.Width = 100;


            grid1.Rows.Insert(1);
            grid1[1, 2] = new SourceGrid.Cells.ColumnHeader("date");
            grid1[1, 3] = new SourceGrid.Cells.ColumnHeader("Hb");
            grid1[1, 4] = new SourceGrid.Cells.ColumnHeader("MCV");


            grid1[1,5] = new SourceGrid.Cells.ColumnHeader("date");
            grid1[1, 6] = new SourceGrid.Cells.ColumnHeader("Result");

            grid1[1, 7] = new SourceGrid.Cells.ColumnHeader("date");
            grid1[1, 8] = new SourceGrid.Cells.ColumnHeader("HbA");
            grid1[1, 9] = new SourceGrid.Cells.ColumnHeader("HbS");
            grid1[1, 10] = new SourceGrid.Cells.ColumnHeader("HbF");
            grid1[1, 11] = new SourceGrid.Cells.ColumnHeader("HbA2");
            grid1[1, 12] = new SourceGrid.Cells.ColumnHeader("Other");
            grid1[1, 2].Row.Height = 25;

            grid1.Rows.Insert(2);
            grid1[2, 0] = new SourceGrid.Cells.ColumnHeader("Patient");
            grid1[2, 1] = new SourceGrid.Cells.RichTextBox();
            grid1[2, 2] = new SourceGrid.Cells.RichTextBox();
            grid1[2, 3] = new SourceGrid.Cells.RichTextBox();
            grid1[2, 4] = new SourceGrid.Cells.RichTextBox();
            grid1[2, 5] = new SourceGrid.Cells.RichTextBox();
            grid1[2, 6] = new SourceGrid.Cells.RichTextBox();
            grid1[2, 7] = new SourceGrid.Cells.RichTextBox();
            grid1[2, 8] = new SourceGrid.Cells.RichTextBox();
            grid1[2, 9] = new SourceGrid.Cells.RichTextBox();
            grid1[2, 10] = new SourceGrid.Cells.RichTextBox();
            grid1[2, 11] = new SourceGrid.Cells.RichTextBox();
            grid1[2, 12] = new SourceGrid.Cells.RichTextBox();
            grid1[2, 13] = new SourceGrid.Cells.RichTextBox();
            grid1[2, 14] = new SourceGrid.Cells.RichTextBox();
            grid1[2, 0].Row.Height = 50;

            grid1.Rows.Insert(3);
            grid1[3, 0] = new SourceGrid.Cells.ColumnHeader("Mother");
            grid1[3, 1] = new SourceGrid.Cells.RichTextBox();
            grid1[3, 2] = new SourceGrid.Cells.RichTextBox();
            grid1[3, 3] = new SourceGrid.Cells.RichTextBox();
            grid1[3, 4] = new SourceGrid.Cells.RichTextBox();
            grid1[3, 5] = new SourceGrid.Cells.RichTextBox();
            grid1[3, 6] = new SourceGrid.Cells.RichTextBox();
            grid1[3, 7] = new SourceGrid.Cells.RichTextBox();
            grid1[3, 8] = new SourceGrid.Cells.RichTextBox();
            grid1[3, 9] = new SourceGrid.Cells.RichTextBox();
            grid1[3, 10] = new SourceGrid.Cells.RichTextBox();
            grid1[3, 11] = new SourceGrid.Cells.RichTextBox();
            grid1[3, 12] = new SourceGrid.Cells.RichTextBox();
            grid1[3, 13] = new SourceGrid.Cells.RichTextBox();
            grid1[3, 14] = new SourceGrid.Cells.RichTextBox();
            grid1[3, 0].Row.Height = 50;

            grid1.Rows.Insert(4);
            grid1[4, 0] = new SourceGrid.Cells.ColumnHeader("Father");
            grid1[4, 1] = new SourceGrid.Cells.RichTextBox();
            grid1[4, 2] = new SourceGrid.Cells.RichTextBox();
            grid1[4, 3] = new SourceGrid.Cells.RichTextBox();
            grid1[4, 4] = new SourceGrid.Cells.RichTextBox();
            grid1[4, 5] = new SourceGrid.Cells.RichTextBox();
            grid1[4, 6] = new SourceGrid.Cells.RichTextBox();
            grid1[4, 7] = new SourceGrid.Cells.RichTextBox();
            grid1[4, 8] = new SourceGrid.Cells.RichTextBox();
            grid1[4, 9] = new SourceGrid.Cells.RichTextBox();
            grid1[4, 10] = new SourceGrid.Cells.RichTextBox();
            grid1[4, 11] = new SourceGrid.Cells.RichTextBox();
            grid1[4, 12] = new SourceGrid.Cells.RichTextBox();
            grid1[4, 13] = new SourceGrid.Cells.RichTextBox();
            grid1[4, 14] = new SourceGrid.Cells.RichTextBox();
            grid1[4, 0].Row.Height = 50;

            grid1.Rows.Insert(5);
            grid1[5, 0] = new SourceGrid.Cells.ColumnHeader("Sib#1");
            grid1[5, 1] = new SourceGrid.Cells.RichTextBox();
            grid1[5, 2] = new SourceGrid.Cells.RichTextBox();
            grid1[5, 3] = new SourceGrid.Cells.RichTextBox();
            grid1[5, 4] = new SourceGrid.Cells.RichTextBox();
            grid1[5, 5] = new SourceGrid.Cells.RichTextBox();
            grid1[5, 6] = new SourceGrid.Cells.RichTextBox();
            grid1[5, 7] = new SourceGrid.Cells.RichTextBox();
            grid1[5, 8] = new SourceGrid.Cells.RichTextBox();
            grid1[5, 9] = new SourceGrid.Cells.RichTextBox();
            grid1[5, 10] = new SourceGrid.Cells.RichTextBox();
            grid1[5, 11] = new SourceGrid.Cells.RichTextBox();
            grid1[5, 12] = new SourceGrid.Cells.RichTextBox();
            grid1[5, 13] = new SourceGrid.Cells.RichTextBox();
            grid1[5, 14] = new SourceGrid.Cells.RichTextBox();
            grid1[5, 0].Row.Height = 50;

            grid1.Rows.Insert(6);
            grid1[6, 0] = new SourceGrid.Cells.ColumnHeader("Sib#2");
            grid1[6, 1] = new SourceGrid.Cells.RichTextBox();
            grid1[6, 2] = new SourceGrid.Cells.RichTextBox();
            grid1[6, 3] = new SourceGrid.Cells.RichTextBox();
            grid1[6, 4] = new SourceGrid.Cells.RichTextBox();
            grid1[6, 5] = new SourceGrid.Cells.RichTextBox();
            grid1[6, 6] = new SourceGrid.Cells.RichTextBox();
            grid1[6, 7] = new SourceGrid.Cells.RichTextBox();
            grid1[6, 8] = new SourceGrid.Cells.RichTextBox();
            grid1[6, 9] = new SourceGrid.Cells.RichTextBox();
            grid1[6, 10] = new SourceGrid.Cells.RichTextBox();
            grid1[6, 11] = new SourceGrid.Cells.RichTextBox();
            grid1[6, 12] = new SourceGrid.Cells.RichTextBox();
            grid1[6, 13] = new SourceGrid.Cells.RichTextBox();
            grid1[6, 14] = new SourceGrid.Cells.RichTextBox();
            grid1[6, 0].Row.Height = 50;

            grid1.Rows.Insert(7);
            grid1[7, 0] = new SourceGrid.Cells.ColumnHeader("Sib#3");
            grid1[7, 1] = new SourceGrid.Cells.RichTextBox();
            grid1[7, 2] = new SourceGrid.Cells.RichTextBox();
            grid1[7, 3] = new SourceGrid.Cells.RichTextBox();
            grid1[7, 4] = new SourceGrid.Cells.RichTextBox();
            grid1[7, 5] = new SourceGrid.Cells.RichTextBox();
            grid1[7, 6] = new SourceGrid.Cells.RichTextBox();
            grid1[7, 7] = new SourceGrid.Cells.RichTextBox();
            grid1[7, 8] = new SourceGrid.Cells.RichTextBox();
            grid1[7, 9] = new SourceGrid.Cells.RichTextBox();
            grid1[7, 10] = new SourceGrid.Cells.RichTextBox();
            grid1[7, 11] = new SourceGrid.Cells.RichTextBox();
            grid1[7, 12] = new SourceGrid.Cells.RichTextBox();
            grid1[7, 13] = new SourceGrid.Cells.RichTextBox();
            grid1[7, 14] = new SourceGrid.Cells.RichTextBox();
            grid1[7, 0].Row.Height = 50;

            grid1.Rows.Insert(8);
            grid1[8, 0] = new SourceGrid.Cells.ColumnHeader("Sib#4");
            grid1[8, 1] = new SourceGrid.Cells.RichTextBox();
            grid1[8, 2] = new SourceGrid.Cells.RichTextBox();
            grid1[8, 3] = new SourceGrid.Cells.RichTextBox();
            grid1[8, 4] = new SourceGrid.Cells.RichTextBox();
            grid1[8, 5] = new SourceGrid.Cells.RichTextBox();
            grid1[8, 6] = new SourceGrid.Cells.RichTextBox();
            grid1[8, 7] = new SourceGrid.Cells.RichTextBox();
            grid1[8, 8] = new SourceGrid.Cells.RichTextBox();
            grid1[8, 9] = new SourceGrid.Cells.RichTextBox();
            grid1[8, 10] = new SourceGrid.Cells.RichTextBox();
            grid1[8, 11] = new SourceGrid.Cells.RichTextBox();
            grid1[8, 12] = new SourceGrid.Cells.RichTextBox();
            grid1[8, 13] = new SourceGrid.Cells.RichTextBox();
            grid1[8, 14] = new SourceGrid.Cells.RichTextBox();
            grid1[8, 0].Row.Height = 50;

            grid1.Width = 1040;
        }

        private void grid1_Paint(object sender, PaintEventArgs e)
        {

        }

        private void button1_Click(object sender, EventArgs e)
        {
            MessageBox.Show(this, "Diagnosis records Successfully added");
        }
    }
}
